package com.haoran.dwz.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.haoran.dwz.domain.entities.Group;
import com.haoran.dwz.domain.pojo.GroupVO4Add;
import com.haoran.dwz.domain.pojo.GroupVO4Query;
import com.haoran.dwz.domain.pojo.GroupVO4Update;

public interface GroupService {
	
	String prex = "group_";
	
	List<Group> listAll();

	Page<Group> findByPageable(Pageable pageable);

	Page<Group> findByPageable(GroupVO4Query group, Pageable pageable);

	void delete(String id, boolean subInclude);

	Group newAdd(GroupVO4Add groupVO);

	Group save(Group group);

	List<Group> treeGroups();

	void delete(String[] ids, boolean subInclude);

	Group update(GroupVO4Update groupVO);

	Group findByNumber(String string);
}
